# coding=utf-8
from django import forms
from django.forms.models import formset_factory

from app import models

class FormB(forms.ModelForm):
    class Meta:
        model = models.B
        exclude = ['id']
FormBFormSet = formset_factory(FormB)


class FormC(forms.ModelForm):
    class Meta:
        model = models.C
        exclude = ['id']
FormCFormSet = formset_factory(FormC)